package com.study.web.controller.versionInfo;

import cn.dev33.satoken.annotation.SaCheckLogin;

import com.study.app.service.IAppImageService;

import com.study.common.core.domain.R;

import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * App图片管理
 *
 * @author zjq
 */

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/app/image")
public class AppImageController {
    private final IAppImageService appImageService;
    /**
     * 查询App背景图
     */
    @SaCheckLogin
    @GetMapping("/background")
    public R<?> getBackgroundImage() {
        return R.ok(appImageService.queryBackgroundImage());
    }









}
